﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotelManager.DataAccess.Model
{
    public class HotelComparer : IEqualityComparer<Hotel>
    {
        public bool Equals(Hotel x, Hotel y)
        {
            if (x.Id == y.Id)
            {
                return true;
            }
            return false;
        }

        public int GetHashCode(Hotel obj)
        {
            return obj.GetHashCode();
        }
    }
}
